#ifndef _TaskList_h_
#define _TaskList_h_

#include "Global.h"




#define TASK_COUNT 6
class TaskList
	: public cocos2d::CCNode
	, public cocos2d::extension::CCBMemberVariableAssigner
	, public cocos2d::extension::CCBSelectorResolver
	, public ViewBase
{
public:
	CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(TaskList, create);
	static TaskList* create(CCObject* pOwer);

	TaskList(void);
	~TaskList(void);

	virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(cocos2d::CCObject * pTarget, cocos2d::CCString * pSelectorName);
	virtual cocos2d::extension::SEL_CCControlHandler onResolveCCBCCControlSelector(cocos2d::CCObject * pTarget, cocos2d::CCString * pSelectorName);
	virtual bool onAssignCCBMemberVariable(cocos2d::CCObject * pTarget, cocos2d::CCString * pMemberVariableName, cocos2d::CCNode * pNode);

	bool init();
	void refresh();
	void onEnter();
	void onExit();
private:
	void onListBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
};

#endif